65fcd35bb6efcfde13940baa24f5ca25d3fc6edf,src/main/java/org/basex/core/Lock.java,Lock,register,#boolean#Context#,39

Before Change


    } else {
      synchronized(this) {
        if(state != State.WRITE && list.size() == 0 &&
            activeR < ctx.prop.num(Prop.PARALLEL)) {
          state = State.READ;
          ++activeR;
          return;

After Change


      }
    } else {
      synchronized(this) {
        final int p = Math.max(ctx.prop.num(Prop.PARALLEL), 1);
        if(state != State.WRITE && list.size() == 0 &&
            activeR < p) {
          state = State.READ;
          ++activeR;
          return;